package com.service.socket.protocol;

import com.service.bean.Road_Data_Paver_1_x;

/**
 * 摊铺机数据区解析
 * @author wt
 *
 */
public class Road_DataProtocol_Paver extends Road_DataProtocol{

	public Road_DataProtocol_Paver(String version){
		
		this.protocol = "(?<year>\\w{2})(?<month>\\w{2})(?<day>\\w{2})(?<hour>\\w{2})(?<minute>\\w{2})(?<second>\\w{2})(?<latitude>\\w{8})(?<longitude>\\w{8})(?<speedInt>\\w{2})(?<speedDec>\\w{2})(?<direction>\\w{4})(?<mileage>\\w{4})(?<oilInt>\\w{2})(?<oilDec>\\w{2})(?<rfid>\\w{30})(?<ironPlateTemp>\\w{4})(?<paverTemp>\\w{4})(?<thickness>\\w{4})(?<evenness>\\w{2})(?<ramSpeed>\\w{4})(?<vibrationSpeed>\\w{4})(?<rawSwitch>\\w{2})(?<rawStatus>\\w{2})";

		if("1".equals(version)){
			data = new Road_Data_Paver_1_x();
		}else{
			data = new Road_Data_Paver_1_x();
		}
	}
}
